package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.Items;
import com.llb666.e.shop.infrastructure.po.ItemsPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 斌~
 * @date 2022/8/7 下午8:36
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ItemsCvt {
    ItemsCvt INSTANCE = Mappers.getMapper(ItemsCvt.class);

    ItemsPo do2po(Items items);

    Items po2do(ItemsPo itemsPo);

    List<Items> po2doList(List<ItemsPo> itemsPoList);
}
